package com.homework;

import java.util.Scanner;

/**
 * 描述: 饮料测试类
 *
 * @author CodeYang
 * @version 2020/12/17 10:08
 */
public class DrinkHomework03 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请选择饮料:1 咖啡 2:矿泉水 3:可乐:\t");
        int i = scanner.nextInt();
       Drink drink= DrinkSimplyFactory.getDrinkInfo(i);
       drink.show();
    }
}
